﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>基于 layui 的极简社区页面模版</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="fly,layui,前端社区">
    <meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
    <link href="~/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="~/lib/fly/css/global.css" rel="stylesheet" />
</head>
<body>

@await Component.InvokeAsync("Header")

@{
        string controller = ViewContext.RouteData.Values["controller"].ToString();

        if (!controller.Equals("Product") && !controller.Equals("UserCenter"))
        {
            Html.RenderPartial("_Column");
        }

        if (controller.Equals("Product"))
        {
            <div class="fly-full">
                @RenderBody()
            </div>
        }
        else
        {
            <div class="layui-container">
                @RenderBody()
            </div>
        }
    }

    @Html.Partial("_Footer")

    @RenderSection("Scripts", required: false)

</body>
</html>
